package com.ruoyi.background.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 积分抽奖记录对象 app_lottery_record
 *
 * @author susu
 * @date 2024-08-24
 */
public class AppLotteryRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userName;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    private String phonenumber;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;

    /**
     * 奖品id
     */
    @Excel(name = "奖品id")
    private Long prizeId;

    /**
     * 奖品名称
     */
    @Excel(name = "奖品名称")
    private String prizeName;

    /**
     * 奖品数量
     */
    @Excel(name = "奖品数量")
    private Integer prizeNum;

    /**
     * 奖品图片
     */
    @Excel(name = "奖品图片")
    private String prizeImage;

    /**
     * 兑换码
     */
    @Excel(name = "兑换码")
    private String prizeCode;

    /**
     * 是否兑换
     */
    @Excel(name = "是否兑换")
    private Integer isExchange;

    /**
     * 当前处于第几轮抽奖
     */
    private Integer lotteryIndex;

    public Integer getLotteryIndex() {
        return lotteryIndex;
    }

    public void setLotteryIndex(Integer lotteryIndex) {
        this.lotteryIndex = lotteryIndex;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }

    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeName(String prizeName) {
        this.prizeName = prizeName;
    }

    public String getPrizeName() {
        return prizeName;
    }

    public void setPrizeNum(Integer prizeNum) {
        this.prizeNum = prizeNum;
    }

    public Integer getPrizeNum() {
        return prizeNum;
    }

    public void setPrizeImage(String prizeImage) {
        this.prizeImage = prizeImage;
    }

    public String getPrizeImage() {
        return prizeImage;
    }

    public void setPrizeCode(String prizeCode) {
        this.prizeCode = prizeCode;
    }

    public String getPrizeCode() {
        return prizeCode;
    }

    public void setIsExchange(Integer isExchange) {
        this.isExchange = isExchange;
    }

    public Integer getIsExchange() {
        return isExchange;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("prizeId", getPrizeId())
                .append("prizeName", getPrizeName())
                .append("prizeNum", getPrizeNum())
                .append("prizeImage", getPrizeImage())
                .append("prizeCode", getPrizeCode())
                .append("isExchange", getIsExchange())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
